import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Crabworld here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Crabworld extends World
{

    /**
     * Constructor for objects of class Crabworld.
     * 
     */
    private Font font;
    private Color color;
    private Greenfoot image;
    public Crabworld()
    {    
        // Create a new world with 600x400 cells with a cell size of 1x1 pixels.
        super(600, 500, 1); 
        Crab c=new Crab();
        addObject(c,50,50);
        for(int i=0;i<7;i++){
            if(i<4){
            Worm w=new Worm();
            addObject(w,50+i*70,100+i*70);
            }
            if(i>=4){
            Worm w=new Worm();
            addObject(w,200+i*30,400-i*30);
            
            }
        
        }
        
        for(int i=0;i<2;i++){
        Lobster l=new Lobster();
        addObject(l,400,200+i*40);
        }
        GreenfootImage bg=getBackground();

        
     
        
    }
}
